import {useEventListener} from "@/assets/js/useEventListener";
import {ref} from "vue";


export function useMouse(){
    const x = ref(0)
    const y = ref(0)
    useEventListener(window, 'mousemove', (event) => {
        x.value = event.pageX
        y.value = event.pageY
    })
    return {x,y}
}